# encoding:utf-8
from base import *
from interface_account import *

STATICFILES_DIRS = (os.path.join(BASE_DIR,'static'),)
MEDIA_ROOT= os.path.join( os.path.dirname(BASE_DIR),'media')


import os
if os.environ.get('TEST'):
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': 'db.sqlite3',
        }
    }  
else:
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
            # 'NAME': 'test_pts',                      # Or path to database file if using sqlite3.
            'NAME': 'xiche',#'pts_37','moki_pts',#
            # The following settings are not used with sqlite3:
            'USER': 'root',
            'PASSWORD': 'root',
            'HOST': '127.0.0.1',                      # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
            'PORT': '3306',                      # Set to empty string for default.
        }
    }

DOMAIN='localhost:8000'
URL_ROOT='http://localhost:8000'

LOCAL=True
WX_PAY_NOTIFY_URL='http://api.uacar.cn/wxpay/notify/'

#redis 3.2.5 is here
REDIS_HOST = '127.0.0.1'
REDIS_PORT = 6379   
REDIS_DB = 0


QR_EXPIRE=2*60  #二维码过期时间